using SqlSugar;
using System;

namespace B.S.XZYData.Domain.LJC
{
    /// <summary>
    /// 工艺路线工序
    /// </summary>
    [SugarTable("route_step")]
    public class RouteStepModel
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 所属路线 ID
        /// </summary>
        [SugarColumn(ColumnName = "route_id", IsNullable = false)]
        public int RouteId { get; set; }

        /// <summary>
        /// 顺序号
        /// </summary>
        [SugarColumn(ColumnName = "seq", IsNullable = false)]
        public int Sequence { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        [SugarColumn(ColumnName = "p_code", Length = 30, IsNullable = false)]
        public string ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [SugarColumn(ColumnName = "p_name", Length = 100, IsNullable = false)]
        public string ProcessName { get; set; }

        /// <summary>
        /// 报工配比
        /// </summary>
        [SugarColumn(ColumnName = "ratio", DecimalDigits = 2)]
        public decimal? Ratio { get; set; }

        /// <summary>
        /// 工序类型
        /// </summary>
        [SugarColumn(ColumnName = "tp", Length = 20)]
        public string? Type { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "c_by", Length = 50)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "c_tm")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "u_by", Length = 50)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "u_tm")]
        public DateTime? UpdateTime { get; set; }
    }
} 